﻿using com.tdb.foundation;
using UnityEngine;

public class GameManager : MonoBehaviour
{
    private static GameManager _instance;

    public static GameManager Instance
    {
        get
        {
            if (_instance == null)
            {
                Debug.LogError("Can`t find GameManager in current scense!");
            }
            return _instance;
        }
    }

    void Awake()
    {
        _instance = this;
        DontDestroyOnLoad(this);
    }

    void Start()
    {
        GameStart();
    }

    private void GameStart()
    {
        //UIManager.Instance.OpenView(new CreateRoleContext());
    }

}
